


<style>
    .request_data_table input{width: 80px!important;padding-left: 10px;}
    .reward-tab{padding: 10px;height: 100%;width: 849px;margin-left: 69px;}
    .share-reward input{margin-top:20px;}
    .add-share,.add-team{cursor: pointer;background-color: rgb(0,166,90); display:inline-block;text-align: center;font-size: 20px; line-height: 22px;width: 22px}
    .reduce-share,.reduce-team{cursor: pointer;background-color:  rgb(221,75,57); display:inline-block;text-align: center;font-size: 20px; line-height: 22px;width: 22px}
</style>


<div class="x-body">
    <div class="layui-form form_single" id="form" action="{:url()}" method="post">
        <div class="layui-form-item">
            <label for="pid" class="layui-form-label">
                <span class="x-red">*</span>问题
            </label>
            <div class="layui-input-block" >
                <input type="text" id="pid" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" name="name" required="" lay-verify="required"
                       autocomplete="off"  value="{$info['name']|default=''}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                (问题)
            </div>

        </div>

        <div class="layui-form-item">
            <label for="pid" class="layui-form-label">
                <span class="x-red">*</span>分类
            </label>
            <div class="layui-input-block">
                <select id="cate_id" name="cate_id">
                    {volist name='cate' id='vo'}

                    <option value="{$vo.id}" {notempty name="info" }{if condition="  $info['cate_id'] eq $vo['id']"} selected {/if}{/notempty}>{$vo.name}</option>
                    {/volist}
                </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                (分类)
            </div>

        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red">*</span>回答
            </label>
            <div class="layui-input-block">
                <textarea class="form-control textarea_editor" name="answer" placeholder="请输入回答">{$info['answer']|default=''}</textarea>
                {:widget('editor/index', array('name'=> 'answer','value'=> ''))}
            </div>
        </div>

















        <div class="box-footer">

            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

            {include file="layout/edit_btn_group"/}

        </div>

        </form>
    </div>
</div>
<script>


</script>
